package com.heima.api.admin;

import com.heima.model.admin.dtos.UserAuthDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmChannelDto;
import com.heima.model.wemedia.pojos.WmChannel;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "leadnews-user")
public interface IUserClient {
    @PostMapping("/api/v1/auth/list")
    ResponseResult getList(@RequestBody UserAuthDto userAuthDto);

    /**
     * 审核失败
     *
     * @param userAuthDto
     * @return
     */
    @PostMapping("/api/v1/auth/authFail")
    ResponseResult authFail(@RequestBody UserAuthDto userAuthDto);

    /**
     * 审核成功
     *
     * @param userAuthDto
     * @return
     */
    @PostMapping("/api/v1/auth/authPass")
    ResponseResult authPass(@RequestBody UserAuthDto userAuthDto);

    @GetMapping("/delect")
    public ResponseResult delectChannel(@PathVariable Integer id);

    @PostMapping("/sreach")
    public ResponseResult list(@RequestBody WmChannelDto wmChannelDto);


    @PostMapping("/insert")
    public ResponseResult insert(@RequestBody WmChannel wmChannel);

    @PostMapping("/update")
    public ResponseResult update(@RequestBody WmChannel wmChannel);
}